<?php

  include_once '../etc/classes.php';
  
  $offers    = new HandleXMLOffers("../xml/offers.xml");
  $highlight = "Normal";
  
  if (isset($_REQUEST['style-offer-checkbox']))
    $highlight = ($_REQUEST['style-offer-checkbox'] == "on")?"Amarillo":"Normal";
  
  $id        = $offers->addOffer($_REQUEST['offer-desc'], $highlight);

  echo $id;

?>
